package com.spider.hello;

public class helloworld {
    public static void main(String[] args) {
        System.out.println("Hello World");
        System.out.println(getVerifyCode());
    }
    //定义一个方法生成验证码
    public static String getVerifyCode(){
        String verifyCode = "";
        for(int i=0;i<4;i++){
            int number = (int)(Math.random()*10);
            verifyCode += number;
        }
        return verifyCode;

    }
}
